package com.lin.blog.controller;


import com.lin.blog.service.IRoleService;
import com.lin.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author lin
 * @since 2020-03-08
 */
@Api(tags = "Role接口")
@RestController
@RequestMapping("/role")
public class RoleController {

    @Autowired
    private IRoleService roleService;



    /**
     * 获取RoleList
     * @return
     */
    @ApiOperation("获取UserList")
    @GetMapping("/list")
    public Result getRoleList(){
        return roleService.listRole();

    }
}
